package cate.common.table.fight.skill.sheet;


import cate.common.table.ESheet;
import cate.common.table.fight.skill.row.ProtoLevelRow;

public class ProtoLevelSheet extends ESheet<ProtoLevelRow> {
    @Override
    public String getSheetName() {
        return "原型等级索引";
    }

    public int getSkillId(int skillProtoId, int skillLevel){
        ProtoLevelRow row = get(skillProtoId);
        if(row == null){
            return 0;
        }
        if(skillLevel == 1){
            return row.skillIdL1;
        }else if(skillLevel == 2){
            return row.skillIdL2;
        }else if(skillLevel == 3){
            return row.skillIdL3;
        }else if(skillLevel == 4){
            return row.skillIdL4;
        }else if(skillLevel == 5){
            return row.skillIdL5;
        }else if(skillLevel == 6){
            return row.skillIdL6;
        }else if(skillLevel == 7){
            return row.skillIdL7;
        }else if(skillLevel == 8){
            return row.skillIdL8;
        }else if(skillLevel == 9){
            return row.skillIdL9;
        }
        return 0;
    }
}
